
package com.wwy.monitor.controller;

import com.wwy.monitor.common.ServiceResponse;
import com.wwy.monitor.model.tddl.query.MonitorTaskQuery;
import com.wwy.monitor.service.MonitorTaskService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/api/monitorTask")
public class MonitorTaskController {
    @Resource
    private MonitorTaskService monitorTaskService;

    /**
     * 分页获取配置详情
     *
     * @return
     */
    @GetMapping("/page")
    @ResponseBody
    private ServiceResponse page(MonitorTaskQuery query) {
        return ServiceResponse.success(monitorTaskService.queryMonitorTask(query));
    }
}